feat: migrate site to inkssg#2
Open
lucasnevespereira wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the hand-rolled
main.go(210 lines + custom config + 3 themes + minify) with theinkssglibrary. The site now uses inkssg's embeddedminimaltheme — same look, less surface area.Changes
main.go— was 210 lines, now 12. Just callsinkssg.Build(".").ink.yaml— replacesconfig.yaml. Same fields, inkssg names (picture→avatar,theme→default_theme).pages/index/content.md— moved fromsrc/content/index.mdwith frontmatter added.Makefile—make siterunsgo run main.go, then carries oversnowz.html+snowz/intopublic/.assets/img/— avatars moved here so inkssg copies them through.go.mod— only requiresgithub.com/snowztech/inkssg. Droppedtdewolff/minify,goldmark,yaml.v2(all transitive now).src/,config.yaml, rootindex.html,assets/css/,assets/js/.Snowz handling (stop-gap)
snowz.htmlandsnowz/are still custom HTML. Makefile copies them intopublic/after the inkssg build. Plan is to migrate snowz to its own repo using inkssg's newbiotheme later (see snowztech/inkssg#3).Deployment — needs decision
public/is currently untracked. Two options:A) Commit
public/, point Pages at/public. Simpler, but commits build output.B) GH Actions deploy workflow. Cleaner — never commit build artifacts. Requires a workflow + flipping Pages source to "GitHub Actions".
This PR doesn't pick yet. Both are easy to add as a follow-up commit.
Test plan
make sitebuilds locally without errorpublic/index.html+public/snowz.html+ assets + theme fileslucasnp.devstill serves correctly after mergelucasnp.dev/snowzstill loads (carry-over copy)